<script lang="ts" setup>
import { titleRows } from "@/config/ads_ids";
defineOptions({
  name: "ArticleEllipsisTitle",
});
let props = defineProps({
  title: {
    type: [String],
  },
});
let emit = defineEmits(["update:title"]);
let title = useRefModel(props, "title", emit);
</script>
<template>
  <div class="article-title">
    <van-text-ellipsis :rows="titleRows" :content="title" />
  </div>
</template>
<style lang="scss" scoped>
.article-title {
  &:deep(.van-text-ellipsis) {
    font-weight: 800;
    font-size: 16px;
    color: #444444;
  }
}
</style>
